Optimal. Leaf size=62 \[ -\frac {2 a (3 c+d) \cos (e+f x)}{3 f \sqrt {a+a \sin (e+f x)}}-\frac {2 d \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {2830, 2725}
\begin {gather*} -\frac {2 a (3 c+d) \cos (e+f x)}{3 f \sqrt {a \sin (e+f x)+a}}-\frac {2 d \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2830
Rubi steps
\begin {align*} \int \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x)) \, dx &=-\frac {2 d \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{3 f}+\frac {1}{3} (3 c+d) \int \sqrt {a+a \sin (e+f x)} \, dx\\ &=-\frac {2 a (3 c+d) \cos (e+f x)}{3 f \sqrt {a+a \sin (e+f x)}}-\frac {2 d \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 82, normalized size = 1.32 \begin {gather*} -\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {a (1+\sin (e+f x))} (3 c+2 d+d \sin (e+f x))}{3 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.59, size = 58, normalized size = 0.94
method | result | size |
default | \(\frac {2 \left (1+\sin \left (f x +e \right )\right ) a \left (\sin \left (f x +e \right )-1\right ) \left (d \sin \left (f x +e \right )+3 c +2 d \right )}{3 \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 92, normalized size = 1.48 \begin {gather*} -\frac {2 \, {\left (d \cos \left (f x + e\right )^{2} + {\left (3 \, c + 2 \, d\right )} \cos \left (f x + e\right ) + {\left (d \cos \left (f x + e\right ) - 3 \, c - d\right )} \sin \left (f x + e\right ) + 3 \, c + d\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{3 \, {\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (c + d \sin {\left (e + f x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 90, normalized size = 1.45 \begin {gather*} \frac {\sqrt {2} {\left (d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, f x + \frac {3}{2} \, e\right ) + 3 \, {\left (2 \, c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \sqrt {a}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {a+a\,\sin \left (e+f\,x\right )}\,\left (c+d\,\sin \left (e+f\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________